#include <QtGui/QApplication>
#include "folderindex.h"

int main(int argc, char *argv[])
{
    Q_INIT_RESOURCE(images);

    QApplication a(argc, argv);

    if (!QSystemTrayIcon::isSystemTrayAvailable())
    {
        QMessageBox::critical(0, QObject::tr("folderIndex"),
                              QObject::tr("Couldn't detect any system tray on this system."));
        return 1;
    }
    QApplication::setQuitOnLastWindowClosed(false);

    folderIndex w;
    QSettings settings("Folder index", "Settings");
    if ( !settings.value( "rhidden", false ).toBool() )
        w.show();
    return a.exec();
}
